
package dao;

import java.sql.SQLException;

import model.UserDTO;



 /**
  * User Data Access Object (DAO).
  * This interface contains all database handling that is needed to 
  * permanently store and retrieve UserDTO object instances. 
  */


public interface UserDAO {
	void insertUser(UserDTO user) throws SQLException;
	void updateUser(UserDTO user) throws DAOException, SQLException;
	void deleteUser(String username) throws DAOException, SQLException;
	UserDTO[] getAllUsers() throws DAOException, SQLException;
	UserDTO getUser(String username) throws DAOException, SQLException;
	UserDTO[] getAllManagers() throws DAOException, SQLException;
}